package PTA3.ti12;
import java.util.Scanner;
import java.util.Arrays;

/**
 * @author Lenovo
 */


public class Main {
    public static void main(String[] args) {
        double[] dd = RR.fun();
        System.out.printf("%.2f", dd);
    }
}

class RR {
    public static double[] fun() {
        Scanner scanner = new Scanner(System.in);
        double[] nums = new double[5];


        for (int i = 0; i < 5; i++) {
            nums[i] = scanner.nextDouble();
        }
        scanner.close();

        // 对数组进行排序
        Arrays.sort(nums);

        // 返回中间的数（索引为2）
        return nums;
    }
}
